<?php
/**
 * Created by PhpStorm.
 * User: sunlight
 * Date: 2018/11/22
 * Time: 19:23
 */

namespace app\api\controller\V1;

use app\api\controller\Common;

class Address extends Common{

    public function adrForm(){
        $adrs=config('address.addresslists');

        $result[]=[
            'address' => 0,
            'addressname' => '首页'
        ];

        foreach ($adrs as $address=>$addressname){
            $result[] = [
                'address' => $address,
                'addressname' => $addressname
            ];
        }

        return show(config('code.success'),'ok',$result,200);
    }

}